package com.example.coursehub.dto;

import com.example.coursehub.entity.Question;
import com.example.coursehub.entity.StudentQuestionAnswer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class QuestionWithAnswerDTO {
    private Question question; // 题目详情
    private StudentQuestionAnswer studentAnswer; // 学生答案（可为空）

    public StudentQuestionAnswer getAnswer() {
        return this.studentAnswer;
    }
}
